import tensorflow as tf
from tensorflow import keras

import numpy as nm
import matplotlib.pyplot as plt

fashion_mnist = keras.datasets.fashion_mnist
(train_images, train_labels), (test_images, test_labels) = fashion_mnist.load_data()
class_names = ['T-shirt/top', 'Trouser', 'Pullover', 'Dress', 'Coat',
               'Sandal', 'Shirt', 'Sneaker', 'Bag', 'Ankle boot']

print (train_images.shape)
print (len(train_labels))
print (train_labels)
print (tf.__version__)

plt.figure()
plt.imshow(train_images[0])
plt.colorbar()
plt.gca().grid(False)
